package com.dream.testtubebaby.data;

import org.json.JSONException;
import org.json.JSONObject;

public class AttentionItem {
	private long doctorid;
	private String doctorname;

	public AttentionItem(long doctorid, String doctorname) {
		super();
		this.doctorid = doctorid;
		this.doctorname = doctorname;
	}

	public long getDoctorid() {
		return doctorid;
	}

	public void setDoctorid(long doctorid) {
		this.doctorid = doctorid;
	}

	public String getDoctorname() {
		return doctorname;
	}

	public void setDoctorname(String doctorname) {
		this.doctorname = doctorname;
	}

	public static AttentionItem getMyAttentionItemNode(JSONObject jsonObject) {
		long doctorid = 0;
		try {
			doctorid = jsonObject.getInt("doctorid");
		} catch (JSONException e8) {

		}
		String doctorname = null;
		try {
			doctorname = jsonObject.getString("doctorname");
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return new AttentionItem(doctorid, doctorname);
	}
}
